package com.jiezhuo.entity;


import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author shuaigesheng
 */
@TableName(value = "iot_alarm_info")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class IotAlarmInfo implements Serializable {

    private Integer id;

    private String name;

    private String description;

    private Integer sensorId;

    private Integer iotTriggerAlarmLevel;

    private Double alarmSdata;

    private Double sdata;

    private Integer iotAlarmProcessStatus;

    private String contactNames;

    private Integer aid;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date atime;

    private Integer mid;

    private Integer deleteFlag;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date mtime;


}
